package com.block.db.mapper;

import com.block.db.entity.ProductProfit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2022-08-30
 */
public interface ProductProfitMapper extends BaseMapper<ProductProfit> {

    ProductProfit findOneByDateInfoAndProductIdLock(@Param("dateInfo") String dateInfo, @Param("productId")Long productId);

    List<ProductProfit> getEntryListByDateInfo(String dateInfo);
}
